import request from '@/utils/request'

export function getOrganizingTree(params) {
  return request({
    url: '/api/SysOrganize/tree',
    method: 'get',
    params: params
  })
}
export function getOrganizingRole(params) {
  return request({
    url: '/api/SysOrganize/roleIds',
    method: 'get',
    params: params
  })
}

export function organizeInsert(data) {
  return request({
    url: '/api/SysOrganize/insert',
    method: 'post',
    data
  })
}

export function organizeUpdate(data) {
  return request({
    url: '/api/SysOrganize/update',
    method: 'post',
    data
  })
}
export function organizeDel(data) {
  return request({
    url: '/api/SysOrganize/delete',
    method: 'post',
    data
  })
}